<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ page import="com.ionglobal.project.*" %>

<%@ include file="../init_include.jsp" %>
<%@ include file="../checkPrivileges.jsp" %>
<%
	int catid=Request.getInt("catid");

	int id = Request.getInt("id",0);
	TechNoticeApp newTechNoticeApp = new TechNoticeApp();
	TechNotice newTechNotice = new TechNotice();
	if(id != 0)
		newTechNotice = newTechNoticeApp.getTechNotice(dbi,id);
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<%=Language.getHTMLLanguageStr()%>">
<link rel="stylesheet" href="<%=Language.getCSSFile(session)%>" type="text/css">
<SCRIPT language=JavaScript1.2 src="../script/editor.js"></SCRIPT>
<title>ggs_TechNotice</title>
</head>
<body>
<%=Language.getNameByCode("sys.CurrentPos","Current Position")%>:<%=Language.getNameByCode("cms.dj.title","Add or Edit")%>ggs_TechNotice<br> 
<hr>   
 <table width="100%" border="0" cellspacing="1" cellpadding="2" class="input_title">
   <tr>
     <td>&nbsp;<%=Language.getNameByCode("cms.dj.title","Add or Edit")%>ggs_TechNotice</td>
   </tr>
 </table>
   <script language="javascript">
   <!--
   	function checkForm() {
   		var sForm=document.formIon;
   		sForm.Submit.disabled = true;
   	}
   	-->
   </script> 	
	 <form method="post" name="formIon" action="TechNotice_addmod.jsp" onSubmit="return checkForm();">
   <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#666666">
		    <tr class="bgcolor_title_tr">
      <td  class="input_title">iId</td>
      <td>    <input name="iId" type="text" value="<%=newTechNotice.getId()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sCode</td>
      <td>    <input name="sCode" type="text" value="<%=newTechNotice.getCode()%>" size="12" maxlength="12">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sOtherCode</td>
      <td>    <input name="sOtherCode" type="text" value="<%=newTechNotice.getOtherCode()%>" size="20" maxlength="50">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sCategory</td>
      <td>    <input name="sCategory" type="text" value="<%=newTechNotice.getCategory()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sTitle</td>
      <td>    <input name="sTitle" type="text" value="<%=newTechNotice.getTitle()%>" size="20" maxlength="200">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sAppDepartment</td>
      <td>    <input name="sAppDepartment" type="text" value="<%=newTechNotice.getAppDepartment()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sAppUser</td>
      <td>    <input name="sAppUser" type="text" value="<%=newTechNotice.getAppUser()%>" size="20" maxlength="40">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sConfDept1</td>
      <td>    <input name="sConfDept1" type="text" value="<%=newTechNotice.getConfDept1()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sConfDept2</td>
      <td>    <input name="sConfDept2" type="text" value="<%=newTechNotice.getConfDept2()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sConfDept3</td>
      <td>    <input name="sConfDept3" type="text" value="<%=newTechNotice.getConfDept3()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sConfDept4</td>
      <td>    <input name="sConfDept4" type="text" value="<%=newTechNotice.getConfDept4()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sConfUser1</td>
      <td>    <input name="sConfUser1" type="text" value="<%=newTechNotice.getConfUser1()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sConfUser2</td>
      <td>    <input name="sConfUser2" type="text" value="<%=newTechNotice.getConfUser2()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sConfUser3</td>
      <td>    <input name="sConfUser3" type="text" value="<%=newTechNotice.getConfUser3()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sConfUser4</td>
      <td>    <input name="sConfUser4" type="text" value="<%=newTechNotice.getConfUser4()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sIssueUser1</td>
      <td>    <input name="sIssueUser1" type="text" value="<%=newTechNotice.getIssueUser1()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sIssueUser2</td>
      <td>    <input name="sIssueUser2" type="text" value="<%=newTechNotice.getIssueUser2()%>" size="10" maxlength="10">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td class="input_title" colspan="2">sNotes</td>
    </tr>    <tr class="bgcolor_title_tr">
      <td class="input_title" colspan="2">
          <iframe  src="../editor.html" width="100%" height="340" name=editor_sNotes></iframe>
      <div name="sNotes_hidden" style="display:none">
        <textarea name="sNotes"><%=newTechNotice.getNotes()%></textarea>
      </div>
      <script>
        var set_sNotes = false;
        function setsNotes(){
          if( ! set_sNotes ){
            if (document.editor_sNotes.loaded ){
              document.editor_sNotes.setHTML(document.formIon.sNotes.value);
              set_sNotes=true;
            }
            else setTimeout("setsNotes()",500);
          }
        }
        setsNotes(); 
      </script>

      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sRemark</td>
      <td>    <input name="sRemark" type="text" value="<%=newTechNotice.getRemark()%>" size="20" maxlength="200">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">iStatus</td>
      <td>    <input name="iStatus" type="text" value="<%=newTechNotice.getStatus()%>" size="5" maxlength="5">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sCrUser</td>
      <td>    <input name="sCrUser" type="text" value="<%=newTechNotice.getCrUser()%>" size="20" maxlength="20">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">dCrDate</td>
      <td>    <input name="dCrDate" type="text" value="<%=newTechNotice.getCrDate()%>" size="20" maxlength="23">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">dIssueDate</td>
      <td>    <input name="dIssueDate" type="text" value="<%=newTechNotice.getIssueDate()%>" size="20" maxlength="23">
      </td>
    </tr>
    <tr class="bgcolor_title_tr">
      <td  class="input_title">sLevel</td>
      <td>    <input name="sLevel" type="text" value="<%=newTechNotice.getLevel()%>" size="1" maxlength="1">
      </td>
    </tr>

 </table>
 <input type="Submit" name="Submit" style="width=80" value="<%=Language.getNameByCode("sys.Submit","Submit")%>">
 <input type="Reset" name="Reset" style="width=80" value="<%=Language.getNameByCode("sys.Reset","Reset")%>">
 <input type="button" name="close" style="width=80" value="<%=Language.getNameByCode("sys.Close","Close")%> " onClick="self.close();">
 <input type="hidden" name="id" value="<%=id%>">
 <input type="hidden" name="catid" value="<%=catid%>">
</form>
</body>                
</html>
<%@ include file="../init_free.jsp" %>
